/**
 * @file 18.c
 * @author your name (you@domain.com)
 * @brief 创建金字塔
 * @version 0.1
 * @date 2022-04-13
 * 
 * @copyright Copyright (c) 2022
 * 
 */
#include <stdio.h>

int main()
{
    int i, j;
    int num;
    printf("Enter the number of Digits: ");
    scanf("%d", &num);
    for (i = 0; i <= num; i++)
    {
        for (j = 0; j < i; j++)
        {
            printf("%d", i);
        }
        printf("\n");
    }
    return 0;
}